<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>网关(OpenMQTTGateway) - IOTTS</title>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/docco.min.css">

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>
        <div class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="../..">IOTTS</a>
                <!-- Expander button -->
                <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <!-- Expanded navigation -->
                <div id="navbar-collapse" class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li class="navitem">
                                <a href="../.." class="nav-link">首页</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">产品 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">USB类</a>
    <ul class="dropdown-menu">
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">USBHUB</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-4口</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-7口</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-25口(全通)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-25口(单通)</a>
</li>
    </ul>
  </li>
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">USB转PCIE</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-4口</a>
</li>
    </ul>
  </li>
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">USB转SATA</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-4口</a>
</li>
    </ul>
  </li>
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">USB转TTL</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">USBHUB-4口</a>
</li>
    </ul>
  </li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">物联网控制类</a>
    <ul class="dropdown-menu">
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">智能开关</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">智能开关(WIFI-1-LINE)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">智能开关(WIFI-8-LINE)</a>
</li>
    </ul>
  </li>
            
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">智能灯泡</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">智能灯泡(WIFI-1-COLOR)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">智能灯泡(WIFI-RGB)</a>
</li>
    </ul>
  </li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">智能网关</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">远程定位</a>
</li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">传感器类</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">烟雾传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">天然气检测传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">人体感应传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">亮度检测传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">温湿度检测传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">PM2.5检测传感器</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">雨水检测传感器</a>
</li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">工业控制</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">冗余电源报警器(RS232通信方式)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">工业继电器控制板(PLC)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">电源开关控制板(MOS)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">工业温控器(温湿度)</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">工业温度采集器(低功耗)</a>
</li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">模块类</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../../products/canbus_module/" class="dropdown-item">CAN总线模块</a>
</li>
            
<li>
    <a href="../../products/lora/" class="dropdown-item">LORA模块</a>
</li>
            
<li>
    <a href="../../products/%E6%95%B0%E7%A0%81%E7%AE%A1%E6%98%BE%E7%A4%BA%E6%A8%A1%E5%9D%97/" class="dropdown-item">数码管显示模块</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">NB模块</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">GPRS模块</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">GPS模块</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">网口模块</a>
</li>
            
<li>
    <a href="../../products/mos_board_io_1_16/" class="dropdown-item">PT100测量模块</a>
</li>
    </ul>
  </li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">开源项目 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">智能家居</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../mqttserver_mosca/" class="dropdown-item">mqtt开源服务器(mosca)</a>
</li>
            
<li>
    <a href="./" class="dropdown-item active">网关(OpenMQTTGateway)</a>
</li>
            
<li>
    <a href="../ESPurna/" class="dropdown-item">ESPurna项目</a>
</li>
            
<li>
    <a href="../Tasmota/" class="dropdown-item">Tasmota项目</a>
</li>
            
<li>
    <a href="../test1/" class="dropdown-item">悟空音箱</a>
</li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">传感器类</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../test1/" class="dropdown-item">温湿度传感器</a>
</li>
    </ul>
  </li>
                                    
  <li class="dropdown-submenu">
    <a href="#" class="dropdown-item">工业控制</a>
    <ul class="dropdown-menu">
            
<li>
    <a href="../test1/" class="dropdown-item">GRBL项目</a>
</li>
    </ul>
  </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">文档 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../test1/" class="dropdown-item">洗衣机受控板固件更新说明</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">调试工具 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../test1/" class="dropdown-item">串口调试助手</a>
</li>
                                    
<li>
    <a href="../test1/" class="dropdown-item">CAN总线调试下载工具</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav ml-auto">
                        <li class="nav-item">
                            <a href="#" class="nav-link" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li class="nav-item">
                                <a rel="prev" href="../mqttserver_mosca/" class="nav-link">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li class="nav-item">
                                <a rel="next" href="../ESPurna/" class="nav-link">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                    <div class="col-md-3"><div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
    <div class="navbar-header">
        <button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
            <span class="fa fa-angle-down"></span>
        </button>
    </div>

    
    <div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
        <ul class="nav flex-column">
            
            <li class="nav-item" data-level="2"><a href="#_1" class="nav-link">简介</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            
            <li class="nav-item" data-level="2"><a href="#_2" class="nav-link">如何使用</a>
              <ul class="nav flex-column">
              </ul>
            </li>
        </ul>
    </div>
</div></div>
                    <div class="col-md-9" role="main">

<h2 id="_1">简介</h2>
<p><code>OpenMQTTGateway</code> 是用于 ESP8266、ESP32、Sonoff RF Bridge 或 Arduino 的 MQTT 网关，带有双向 433mhz/315mhz/868mhz、红外通信、BLE、信标检测、兼容 Mi flora/Mi jia、SMS 和 LORA 等能力。 </p>
<p><code>OpenMQTTGateway</code> 可以与 <code>OpenHAB</code>、<code>Home Assistant</code>、<code>NodeRED</code> 等智能助理集成，实现智能家居环境。</p>
<p>项目地址：<a href="https://github.com/1technophile/OpenMQTTGateway">https://github.com/1technophile/OpenMQTTGateway</a></p>
<p>如图
<img alt="demo.png" src="151350_xrQ0_4252687.png" /></p>
<h2 id="_2">如何使用</h2>
<p>在release页面下载最新<code>nodemcuv2-ir-firmware.bin</code></p>
<p>然后我们再下载ESP8266刷固件程序
下载地址：<a href="https://github.com/marcelstoer/nodemcu-pyflasher/releases">https://github.com/marcelstoer/nodemcu-pyflasher/releases</a></p>
<p>当然我们也可以根据自己的需求使用ArduinoIDE修改并重新编译固件</p>
<p>将固件刷写到NodeMCU里，芯片会发射出一个信号，我们连接到信号，会自动弹出网页带大家到配置界面。</p>
<p>配置界面引导我们配置好WiFi信号和MQTT相关信息。</p></div>
            </div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="searchModalLabel">Search</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form>
                    <div class="form-group">
                        <input type="search" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
